package com.myjar.excel.util;

public class StringUtils {

    public static String formatError(String desc, int row, int cell, Exception ex) {
        return String.format(
                "%-7s[%d行, %d列]:%8s",
                desc, row, cell, ex.getMessage()
        );
    }

    public static String formatError(int row, int cell, Throwable ex) {
        return String.format(
                "[%d行, %d列]:%8s",
                 row, cell, ex.getMessage()
        );
    }
}
